import React, { Component } from 'react'

export const List = (props) => {
   return (
   <ul>{
      props.comments.map((item) => (
         <li key={item.id}>{item.user}: {item.rating} <br/> {item.msg}<br/>
              
         </li>
      ))
   }</ul>
   );
}